import NetWork from '@Config/server/api/base'

/***
 * @description 标签列表
 *
 */
export const tagList = async (_data) => {
  let work = await NetWork('/tag/list', {
    body: JSON.stringify(_data),
  })

  return work
}
//新增修改一级、二级标签
export const tagAdd = async (_data) => {
  let work = await NetWork('/tag/add', {
    body: JSON.stringify(_data),
  })

  return work
}
//删除标签和分类
export const tagDel = async (_data) => {
  let work = await NetWork('/tag/del', {
    body: JSON.stringify(_data),
  })

  return work
}

///tag/listTagGroup

//标签组列表
export const tagListTagGroup = async (_data) => {
  let work = await NetWork('/tag/listTagGroup', {
    body: JSON.stringify(_data),
  })
  return work
}

///新增标签组
export const tagAddTagGroup = async (_data) => {
  let work = await NetWork('/tag/addTagGroup', {
    body: JSON.stringify(_data),
  })
  return work
}

///修改标签组
export const tagModifyTagGroup = async (_data) => {
  let work = await NetWork('/tag/modifyTagGroup', {
    body: JSON.stringify(_data),
  })
  return work
}

///删除标签组
export const tagDelTagGroup = async (_data) => {
  let work = await NetWork('/tag/delTagGroup', {
    body: JSON.stringify(_data),
  })
  return work
}
